package com.ciaojian.core.service;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ciaojian.core.mapper.MemberOrderMapper;
import com.ciaojian.core.model.MemberOrder;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Atlakyn
 */
public abstract class MemberOrderService<M extends BaseMapper<T>, T> extends ServiceImpl<MemberOrderMapper, MemberOrder> {

    /**
     * 生成当前日期时间串
     *
     * @return 当前时间
     */
    public String getCurrentDateStr() {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddhhmmssSSS");
        return sdf.format(date);
    }
}
